package com.strategy.demo.impl;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.strategy.demo.INoticeStrategy;
import com.strategy.demo.annotation.NoticeType;
import com.strategy.demo.enums.NoticeTypeEnum;

import lombok.extern.slf4j.Slf4j;

/**
 * 点赞消息通知策略
 * @author francis
 *
 */
@Slf4j
@Component
@NoticeType(NoticeTypeEnum.LIKE)
public class LikeNoticeStrategyImpl implements INoticeStrategy {

	@Override
	@Transactional
	public void doStrategy(String msg) {
		log.info("点赞消息：{}", msg);
	}

}
